/**
 * @ByteBeanDemo.java  COPYRIGHT xiaojian
 * 
 * Created on 2017年6月26日 上午11:35:28
 */
package xiaojian.toolkit.bean.bytebean;

import org.apache.commons.lang3.builder.ToStringBuilder;

import xiaojian.toolkit.bean.bytebean.annotation.ByteBeanField;

/**
 * @author <a href="mailto:cxj2000@gmail.com">xiaojian.cao</a>
 *
 */
public class ByteBeanDemo {

	@ByteBeanField(index = 0, fixedLength = 20)
	private String name = null;

	@ByteBeanField(index = 1)
	private int age = 0;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}
